package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
)

type ChatHistory struct {
	Id         int64  `json:"id" gorm:"primaryKey;autoIncrement"` // bigint(20) unsigned NOT NULL AUTO_INCREMENT,
	Uid        int    `json:"user_id"`                            //int(11) DEFAULT NULL COMMENT '用户id',
	RoomId     int    `json:"room_id"`                            //varchar(100) DEFAULT NULL COMMENT '房间id',
	CreateTime int64  `json:"create_time"`                        //datetime DEFAULT NULL,
	Content    string `json:"content"`
	Status     int    `json:"status" grom:"-"`
}

func (ChatHistory) TableName() string {
	return fmt.Sprintf("%schat_history", models.Prefix)
}
